import java.util.Scanner;

public class Method {
    public static void main(String[] args) {
        Scanner input=new Scanner(System.in);
        System.out.println("请输入第一个字母");
        char one=input.next().charAt(0);
        switch (one){
            case 'm':
                System.out.println("星期一") ;
                break;
            case 'w':
                System.out.println("星期三");
                break;
            case 'f':
                System.out.println("星期五");
                break;
            case 't':
                System.out.println("请输入第二个字母");
                char two =input.next().charAt(0);
                if(two=='u'){
                    System.out.println("星期二");
                }else if(two=='h'){
                    System.out.println("星期四");
                }else{
                    System.out.println("请输入有效的数字");
                }
                break;
            case 's':
                System.out.println("请输入第二个字母");
                char three =input.next().charAt(0);
                if(three=='a'){
                    System.out.println("星期六");
                }else if(three=='u'){
                    System.out.println("星期日");
                }else{
                    System.out.println("请输入有效的数字");
                }
            default:
                System.out.println("请输入合法的数字");
        }
    }
}
